<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>gbjqmenu Plugin Test</title>
        <script type="text/javascript" src="jquery-1.6.2.min.js" ></script>
        <script type="text/javascript" src="gb_rightclick.js" ></script>
        <script type="text/javascript">
            $(document).ready(onReady);
            function onReady() {
                menu = {menu:''}
                menu.menu = {
                    0: {
                        name: "item1",
                        call: function(obj) {alert("clicked "+$(obj).html());},
                        settings: {passthis:true}
                    },
                    1: {
                        name: "item2",
                        call: function() {}
                    },
                    2: {name:"item3", call:function(){alert("clicked number 3")}}
                }
                $('#menus li').gb_rightclick(menu);
            }
        </script>
    </head>
    <body>
        <div id="rightclick" title="dialog" style="width:300px; height:300px; background:#CCC; border:1px solid black">
            <ul id="menus" style="list-style:none">
                <li>Menu 1</li>
                <li>Menu 2</li>
                <li>Menu 3</li>
            </ul>
        </div>
    </body>
</html>
